#ifndef FILEINFO_H
#define FILEINFO_H

#include <QString>

namespace Book
{

class FileInfo
{
    public:

        explicit
        FileInfo (const QString& _fileName)
            : m_FileName(_fileName) {}

        FileInfo (const QString& _fileName, const QString& _encoding)
            : m_FileName(_fileName), m_Encoding(_encoding) {}

        FileInfo (const FileInfo& _copy)
            : m_FileName(_copy.GetFileName()), m_Encoding(_copy.GetEncoding()) {}

        const QString& GetFileName () const { return m_FileName; }

        const QString& GetEncoding () const { return m_Encoding; }

        bool IsDefaultEncoding () const { return GetEncoding().isEmpty(); }

    private:

        QString m_FileName;

        QString m_Encoding;
};

}

#endif // FILEINFO_H
